import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import {BrowserRouter as Router} from 'react-router-dom';
import axios from './assets/axios';
import store from "./redux/store";
import {Provider} from 'react-redux'
import moment from 'moment'

React.Component.prototype.dateFormat = function (dt) {
    return moment(dt).format('YYYY-MM-DD HH:mm')
}
React.Component.prototype.$axios = axios;
ReactDOM.render(
    <Provider store={store}>
        <Router>
            <App />
        </Router>
    </Provider>,
    document.getElementById('root')
)

